import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
// 引入Vant
import Vant from 'vant'
// 注意的是 引入Css样式
import 'vant/lib/index.css';

import 'amfe-flexible'
import '@/utils/rem.js'        
// 引入持久化 插件
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
const app = createApp(App)
// 使用插件
app.use(pinia.use(piniaPluginPersistedstate))
// 使用Vant
app.use(Vant)
app.use(router)

app.mount('#app')
